{extend name="public/base" /}

{block name="title"}<title>活动报名列表</title>{/block}

{block name="pjax_container"}
<section class="content-header">
    <h1>活动报名列表</h1>
    <ol class="breadcrumb">
        <li class="active"><i class="fa fa-dashboard"></i> 活动报名列表</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <div class="" style="top:10px;">
                        <form action="{:search_url(['status','s_time','e_time','search'])}" method="GET" pjax-search="">
                            <div class="input-group input-group-sm">
                                <div style="float: right;">
                                    报名时间
                                    <input type="date" style="display: inline-block;width: 200px;margin: 0px 5px;padding-left: 3px;border: 1px solid #ccc;height: 28px;border-radius: 3px;" name="start_time" value="{:input('get.start_time')}"/> 至
                                    <input type="date" style="display: inline-block;width: 200px;margin: 0px 5px;padding-left: 3px;border: 1px solid #ccc;height: 28px;border-radius: 3px;" name="end_time" value="{:input('get.end_time')}"/>
                                    <input type="text" style="display: inline-block;width: 200px;margin: 0px 5px;padding-left: 3px;border: 1px solid #ccc;height: 28px;border-radius: 3px;" name="search" class="" value="{:input('get.search')}" placeholder="活动标题或姓名" />
                                    <div class="input-group-btn" style="display: inline-block;">
                                        <button type="submit" class="btn btn-default sreachs">
                                            <i class="fa fa-search"></i>查询
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="box-body table-responsive">
                    <table class="table table-bordered table-hover">
                        <tr>
                            <th>ID</th>
                            <th>报名时间</th>
                            <th>报名活动</th>
                            <th>联系人姓名</th>
                            <th>性别</th>
                            <th>出生年月</th>
                            <th>联系人手机</th>
                            <th>是否签到</th>
                            <th>是否签退</th>
                            <th>操作</th>
                        </tr>
                        {volist name="data" id="v"}
                        <tr>
                            <td>{$v["id"]}</td>
                            <td>{$v['create_time']}</td>
                            <td>{$v['title']}</td>
                            <td>{$v["name"]}</td>
                            <td>{$v["SexStr"]}</td>
                            <td>{$v["BirthdayStr"]}</td>
                            <td>{$v['mobile']}</td>
                            <td>{$v['IsSignOnStr']}</td>
                            <td>{$v['IsSignOffStr']}</td>
                            <td>
                                {:authAction(CONTROLLER_NAME.'/user_activity_edit','edit',['id'=>$v['id']])}
                                {:authAction(CONTROLLER_NAME.'/user_activity_del','delete_one',['id'=>$v['id']])}
                            </td>
                        </tr>
                        {/volist}
                    </table>
                </div>
                <div class="box-footer clearfix">
                    {$data->render()}
                </div>
            </div>
        </div>
    </div>
</section>
{/block}
